package mode.states18;


/***
 * 状态
 * https://www.cnblogs.com/InternetJava/p/17355560.html
 */
public class StatesDemo {

    public static void main(String[] args) {
        Shopping shopping = new Shopping();
        //下单成功
        shopping.startOrder(true);
        shopping.startOrder(true);
        shopping.startOrder(true);
        shopping.startOrder(true);
        shopping.startOrder(true);
        shopping.startPay(true);
        shopping.startReceive(false);
        shopping.startRefund(true);
        shopping.startEvaluate(true);
        shopping.startFinish(true);


    }


}
